const api = '/api/user'
export default {
  //中转页券列表
  getAgreement: (...args) => uni.$request.post(`${api}/getAgreement`, ...args),
  //获取用户是否接受过协议
  getAcceptData: (...args) =>
    uni.$request.post(`${api}/getAcceptData`, ...args),
  //获取用户是否接受过协议
  acceptAgreement: (...args) =>
    uni.$request.post(`${api}/acceptAgreement`, ...args),
  //中转页券列表
  getMemberMission: (...args) =>
    uni.$request.post(`${api}/getMemberMission`, ...args),
  //中转页券列表
  getInviteData: (...args) =>
    uni.$request.post(`${api}/getInviteData`, ...args),

  //用户信息
  userInfo: (...args) => uni.$request.post(`${api}/userInfo`, ...args),
  //修改用户信息
  setMemberData: (...args) =>
    uni.$request.post(`${api}/setMemberData`, ...args),
  //重置密码
  resetPwd: (...args) => uni.$request.post(`${api}/resetPwd`, ...args),
  //绑定手机号 h5
  bindMobile: (...args) => uni.$request.post(`${api}/bindMobile`, ...args),
  //获取观影列表
  getRealNameList: (...args) =>
    uni.$request.post(`${api}/getRealNameList`, ...args),

  //删除观影人信息
  delRealName: (...args) => uni.$request.post(`${api}/delRealName`, ...args),
  //添加观影人信息
  saveRealName: (...args) => uni.$request.post(`${api}/saveRealName`, ...args),
  //修改密码
  modifyPwd: (...args) => uni.$request.post(`${api}/modifyPwd`, ...args)
}
